package com.ty.paypal.core.request;

import com.paypal.http.Headers;
import com.paypal.http.HttpRequest;
import com.ty.paypal.core.Plan;
import com.ty.paypal.core.request.body.PlanRequest;

/**
* @author ty
* @createDate 创建时间：2020年2月21日 下午4:42:32
**/
public class PlanCreateRequest extends HttpRequest<Plan>{
 
	public PlanCreateRequest() {
		super("/v1/billing/plans", "POST", Plan.class);
		header(Headers.CONTENT_TYPE, "application/json");
		header("Accept", "application/json");
		header("Prefer","return=representation");
	}
	
    public PlanCreateRequest PayPalRequestId(String PayPalRequestId) {
        header("PayPal-Request-Id", String.valueOf(PayPalRequestId));
        return this;
    }
    
	public PlanCreateRequest authorization(String authorization) {
        header("Authorization", String.valueOf(authorization));
        return this;
    }
	
	public PlanCreateRequest prefer(String prefer) {
        header("Prefer", String.valueOf(prefer));
        return this;
    }
	
	public PlanCreateRequest requestBody(PlanRequest body) {
        super.requestBody(body);
        return this;
    }
}
